package com.skeleton.db.entity;

import com.skeleton.db.dto.UserinfoDto;
import com.skeleton.utils.SystemTools;

public class Userinfo {

	private String loginname;
	private String nickname;
	private String password;
	private int regist_dttm;
	private String regist_ip;
	private char status;
	private int level;

	public UserinfoDto toDto() {
		UserinfoDto dto = new UserinfoDto();
		dto.setUserLoginname(loginname);
		dto.setUserNickname(nickname);
		dto.setUserPassword(password);
		dto.setUserRegistDttm(regist_dttm);
		dto.setUserRegistDttmStr(SystemTools.formatDTTM(SystemTools.convertIntToDTTM(regist_dttm)));
		dto.setUserRegistIp(regist_ip);
		dto.setUserStatus(status);
		dto.setUserLevel(level);
		return dto;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public int getRegist_dttm() {
		return regist_dttm;
	}

	public void setRegist_dttm(int regist_dttm) {
		this.regist_dttm = regist_dttm;
	}

	public String getRegist_ip() {
		return regist_ip;
	}

	public void setRegist_ip(String regist_ip) {
		this.regist_ip = regist_ip;
	}

	public char getStatus() {
		return status;
	}

	public void setStatus(char status) {
		this.status = status;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

}
